Skip to content

Exec-next: Use a single results array to simplify and speed up authorized fields#5607

Merged
rmosolgo merged 2 commits intomasterfrom
exec-next-authorization-optimization
Apr 23, 2026
Merged

Exec-next: Use a single results array to simplify and speed up authorized fields#5607
rmosolgo merged 2 commits intomasterfrom
exec-next-authorization-optimization

Conversation

@rmosolgo
Copy link
Copy Markdown
Owner

An idea from poking around traces.

@object_is_authorized is used to map objects to results. But since we're making a new array in this case anyways, I think we could make an array of authorized results anyways. Then that maps to authorized_objects and @field_results directly, no more need to map.

When authorization isn't used, we don't create a new array; instead reusing the one from the parent scope.

@rmosolgo rmosolgo added this to the 2.5.24 milestone Apr 23, 2026
@rmosolgo rmosolgo merged commit 7a3c843 into master Apr 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant